package cn.niit.letuseatdemo.mapper;
import cn.niit.letuseatdemo.entity.domain.UserOrder;
import org.springframework.stereotype.Repository;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: JinNa ToDo
 * @Date: 2022/11/06/16:53
 * @Description:
 */

@Repository
public interface UserOrderMapper {
    /*
    * @Description:查询订单
     * @param: orderId
     * @return: cn.niit.letuseatdemo.entity.domain.UserOrder
    **/
    public UserOrder selectUserOrderByOrderId(Integer orderId);

    /*
    * @Description: 查询订单列表${TODO}
     * @param: userOrder
     * @return: java.util.List<cn.niit.letuseatdemo.entity.domain.UserOrder>
    **/
    public List<UserOrder> selectUserOrderList(UserOrder userOrder);

    /*
    * @Description:新增订单
     * @param: userOrder
     * @return: int
    **/
    public int insertUserOrder(UserOrder userOrder);

    /*
    * @Description: 订单状态更新
     * @param: userOrder
     * @return: int
    **/
    public int updateUserOrderStatus(UserOrder userOrder);
    /*
    * @Description: 删除订单
     * @param: userOrderId
     * @return: int
    **/
    public int deleteUserOrderByOrderId(Integer userOrderId);



}

